def calc(string):
    al_num = 0
    space_num = 0
    dig_num = 0
    other_num = 0
    for n in string:
        if n.isdigit():
            dig_num += 1
        elif n.isspace():
            space_num += 1
        elif n.isalpha():
            al_num += 1
        else:
            other_num += 1
    return (al_num,space_num,dig_num,other_num)


def num_1(num):
    if isinstance(num,(str,list,tuple,)):
        length = len(num)
        if length >= 5:
            return True
        else:
            return False
    else:
        return False
b=num_1({'a':1,'b':2,'c':3})
print(b)



def func(l):
    l.append(4)
a=[1,2,3]
print(id(a))
func(a)
print(id(a))



def func(a):
    a += 1
    return a
a=1
print(id(a))
func(a)
print(id(a))



def is_leap(year):
    if ((year % 4 == 0 and year % 100 != 0 ) or year % 400 == 0):
        return True
    else:
        return False
i = is_leap(2020)
print(i)